<?php global $base_url?>
<!-- #header -->
<?php hkfanr_cms_over_ad();?>
<div id="header">
	<!-- #header-inside -->
    <div id="header-inside" class="container_12 clearfix">
    	<!-- #header-inside-left -->
        <div id="header-inside-left" class="grid_1">
            <a href="<?php print check_url($front_page); ?>" title="<?php print t('Home'); ?>"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /></a>
        </div><!-- EOF: #header-inside-left -->
        <div id="header-inside-middle" class="grid_7">
            <div id="navigation" class="clearfix">
            <?php 
            $main_menu_tree = menu_tree(variable_get('menu_main_links_source', 'main-menu')); 
            print drupal_render($main_menu_tree);
            ?>
            </div>
        </div><!-- EOF: #header-inside-middle -->
        <!-- #header-inside-right -->    
        <div id="header-inside-right" class="grid_3">
            <?php print render($page['search_area']); ?>
        </div><!-- EOF: #header-inside-right -->
        <div id="header-inside-end" class="grid_2">
            <?php hkfanr_cms_user_menu_alter();?>
        </div><!-- EOF: #header-inside-end -->
    </div><!-- EOF: #header-inside -->
</div><!-- EOF: #header -->
<!-- #content -->
<div id="content">
    <!-- #content-inside -->
    <div id="content-inside" class="container_12 clearfix">
        <?php if ($messages): ?>
        <div id="console" class="clearfix">
        <?php print $messages; ?>
        </div>
        <?php endif; ?>
        <div id="main" class="grid_8">
            <?php
                if ($is_front){
                    drupal_add_js(drupal_get_path('theme', 'hkfanr_theme') . '/js/slider.js');
                }
            ?>
            <div class="slider_container">
                <?php
                $slider_arr = array(1,2,3,4);
                foreach ($slider_arr as $key => $value) {
                ?>
                    <img class ="slider_container_img" id="slider_container_img_1" 
                     src="<?php print $base_url;?>/sites/default/files/slider/slider_<?php echo $value?>.jpg" 
                     alt="Slider <?php echo $key?>" />
                <?php
                }
                ?>
            </div>
            <div class="recommend_block">
                <table class="recommend_title_box">
                    <tr>
                        <td>
                            <div class="recommend_title_box_title">
                                <span class="recommend_title_box_title_span">最新推荐</span>
                            </div>
                        </td>
                        <td>
                            <div class="recommend_title_box_more">更多 ></div>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="recommend_box">
                <div class="recommend_item">
                    <img class="recommend_item_img" src="<?php print $base_url;?>/sites/default/files/recommend/1.jpg">
                    <table class="recommend_item_title">
                        <tr>
                            <td class="recommend_item_title_left"></td>
                            <td class="recommend_item_title_middle">藤野先生</td>
                            <td class="recommend_item_title_right"></td>
                        </tr>
                    </table>
                </div>
                <div class="recommend_item">
                    <img class="recommend_item_img" src="<?php print $base_url;?>/sites/default/files/recommend/1.jpg">
                    <table class="recommend_item_title">
                        <tr>
                            <td class="recommend_item_title_left"></td>
                            <td class="recommend_item_title_middle">藤野先生</td>
                            <td class="recommend_item_title_right"></td>
                        </tr>
                    </table>
                </div>
                <div class="recommend_item">
                    <img class="recommend_item_img" src="<?php print $base_url;?>/sites/default/files/recommend/1.jpg">
                    <table class="recommend_item_title">
                        <tr>
                            <td class="recommend_item_title_left"></td>
                            <td class="recommend_item_title_middle">藤野先生</td>
                            <td class="recommend_item_title_right"></td>
                        </tr>
                    </table>
                </div>
                <div class="recommend_item">
                    <img class="recommend_item_img" src="<?php print $base_url;?>/sites/default/files/recommend/1.jpg">
                    <table class="recommend_item_title">
                        <tr>
                            <td class="recommend_item_title_left"></td>
                            <td class="recommend_item_title_middle">藤野先生</td>
                            <td class="recommend_item_title_right"></td>
                        </tr>
                    </table>
                </div>
            </div>
            <div id="hot_box">
                <div class="hot_block">
                    <table class="recommend_title_box">
                        <tr>
                            <td>
                                <div class="recommend_title_box_title">
                                    <span class="recommend_title_box_title_span">热门问答</span>
                                </div>
                            </td>
                            <td>
                                <div class="recommend_title_box_more">更多 ></div>
                            </td>
                        </tr>
                    </table>
                    <div class="hot_block_content">
                        <ul>
                            <?php
                            $hot_block_arr = array(1,2,3,4,5);
                            foreach ($hot_block_arr as $key => $value) {
                            ?>
                                <li class="hot_block_item">
                                    <a href="#">问君能有几多愁</a>
                                </li>
                            <?php
                            }
                            ?>
                        </ul>
                    </div>
                </div>
                <div class="hot_block">
                    <table class="recommend_title_box">
                        <tr>
                            <td>
                                <div class="recommend_title_box_title">
                                    <span class="recommend_title_box_title_span">扎堆热帖</span>
                                </div>
                            </td>
                            <td>
                                <div class="recommend_title_box_more">更多 ></div>
                            </td>
                        </tr>
                    </table>
                    <div class="hot_block_content">
                        <ul>
                            <?php
                            $hot_group_arr = array(1,2,3,4,5);
                            foreach ($hot_group_arr as $key => $value) {
                            ?>
                                <li class="hot_block_item">
                                    <a href="#">花落人独立微雨念双飞</a>
                                </li>
                            <?php
                            }
                            ?>
                        </ul>
                    </div>
                </div>
            </div>
            <?php
            unset($page['content']['system_main']);
            print render($page['content']);
            ?>
        </div><!-- EOF: #main -->
        <div id="sidebar-second" class="grid_4">
            <div class="ad_container">
                <?php echo theme('ad300x250');?>
            </div>
            <div class="sider_block">
                <table class="recommend_title_box">
                    <tr>
                        <td>
                            <div class="recommend_title_box_title">
                                <span class="recommend_title_box_title_span">商城</span>
                            </div>
                        </td>
                        <td>
                            <div class="recommend_title_box_more">
                                换一批
                                <img class ="refresh_img"
                                    src="<?php print $base_url.'/'.drupal_get_path('theme', 'hkfanr_theme');?>/images/icon/refresh_off.png"
                                    alt="fresh"/>
                            </div>
                        </td>
                    </tr>
                </table>
                <table class="shop_show">
                    <tr>
                        <td>
                            <img class ="shop_img shop_img_odd" id="shop_img_1" 
                         src="<?php print $base_url;?>/sites/default/files/shop/shop_1.png"  
                         alt="Ad 1" />
                        </td>
                        <td>
                            <img class ="shop_img shop_img_even" id="shop_img_2" 
                         src="<?php print $base_url;?>/sites/default/files/shop/shop_1.png"  
                         alt="Ad 1" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img class ="shop_img shop_img_odd" id="shop_img_3" 
                         src="<?php print $base_url;?>/sites/default/files/shop/shop_1.png"  
                         alt="Ad 1" />
                        </td>
                        <td>
                            <img class ="shop_img shop_img_even" id="shop_img_4" 
                         src="<?php print $base_url;?>/sites/default/files/shop/shop_1.png" 
                         alt="Ad 1" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="sider_block">
                <table class="recommend_title_box">
                    <tr>
                        <td>
                            <div class="recommend_title_box_title">
                                <span class="recommend_title_box_title_span">堆儿</span>
                            </div>
                        </td>
                        <td>
                            <div class="recommend_title_box_more">
                                换一批
                                <img class ="refresh_img"
                                    src="<?php print $base_url.'/'.drupal_get_path('theme', 'hkfanr_theme');?>/images/icon/refresh_off.png"
                                    alt="fresh"/>
                            </div>
                        </td>
                    </tr>
                </table>
                <div class="group_box">
                    <ul>
                        <?php
                        $group_item_arr = array(1,2,3,4,5,6,7,8);
                        foreach ($group_item_arr as $key => $value) {
                        ?>
                            <li class="group_item">
                                <img class ="group_item_img"
                                     src="<?php print $base_url.'/'.drupal_get_path('theme', 'hkfanr_theme');?>/images/icon/group_avater.png"
                                     alt="group avater"/>
                                <img class ="group_item_img_avater"
                                     src="<?php print $base_url;?>/sites/default/files/shop/shop_1.png"
                                     alt="Avater"/>
                                <div class="group_item_title">
                                    <a href="#">手办堆儿</a>
                                </div>
                            </li>
                        <?php
                        }
                        ?>
                    </ul>
                </div>
            </div>
        	<?php print render($page['sidebar_second']); ?>
        </div><!-- EOF: #sidebar-second -->

    </div><!-- EOF: #content-inside -->

</div><!-- EOF: #content -->

<!-- #footer -->    
<div id="footer">
	<!-- #footer-inside -->
    <div id="footer-inside" class="container_12 clearfix">
        <div class="powered-by">
            @ 2014 HKfanr
        </div>
        <div class="footer-area grid_7">
            <ul class="footer-menu-1">
                <?php hkfanr_cms_footer_menu(1);?>
            </ul>
        </div><!-- EOF: .footer-area -->
        <div class="footer-area grid_4">
            <ul class="footer-menu-2">
                <?php hkfanr_cms_footer_menu(2);?>
            </ul>
        </div><!-- EOF: .footer-area -->
    </div><!-- EOF: #footer-inside -->

</div><!-- EOF: #footer -->
